<?php
namespace Home\Model;
use Think\Model;
class EnterModel extends Model{
	protected $_auto 	=array(
			array('cdate','getCdate',self::MODEL_INSERT,'callback'),
			array('ctime','getCtime',self::MODEL_INSERT,'callback'),
	);
	function getCtime(){
		return date('H:i:s');
	}
	function getCdate(){
		return date('Y-m-d');
	}
}